const data = window._videoAccess.monitorSelect;

if (data && data.monitorLevel != 'root') {
    const monitorModals = this.pageObj.getApiWidgetsByClassName('monitor-modal');
    monitorModals.forEach(v => v.hideWidget());

    const modals = this.pageObj.getApiWidgetsByClassName('del-modal');
    modals.forEach(v => v.showWidget());
    window._videoAccess.monitorSelect = { ...window._videoAccess.monitorSelect, operate: 'delete' };
} else {
    layer.msg('请选择需要删除的视图');
}
